package cn.kn.triage.sys.model;

import java.util.Date;

public class Permission {
    private Integer id;

    private Integer pid;

    private String cname;

    private Byte ctype;

    private Integer sn;

    private String url;

    private String perm;

    private String icon;

    private String state;

    private String descriptiom;

    private Date ctime;

    private Date ltime;

    private Boolean isdel;

    private Boolean isstop;

    private Integer opid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Byte getCtype() {
        return ctype;
    }

    public void setCtype(Byte ctype) {
        this.ctype = ctype;
    }

    public Integer getSn() {
        return sn;
    }

    public void setSn(Integer sn) {
        this.sn = sn;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPerm() {
        return perm;
    }

    public void setPerm(String perm) {
        this.perm = perm;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDescriptiom() {
        return descriptiom;
    }

    public void setDescriptiom(String descriptiom) {
        this.descriptiom = descriptiom;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getLtime() {
        return ltime;
    }

    public void setLtime(Date ltime) {
        this.ltime = ltime;
    }

    public Boolean getIsdel() {
        return isdel;
    }

    public void setIsdel(Boolean isdel) {
        this.isdel = isdel;
    }

    public Boolean getIsstop() {
        return isstop;
    }

    public void setIsstop(Boolean isstop) {
        this.isstop = isstop;
    }

    public Integer getOpid() {
        return opid;
    }

    public void setOpid(Integer opid) {
        this.opid = opid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pid=").append(pid);
        sb.append(", cname=").append(cname);
        sb.append(", ctype=").append(ctype);
        sb.append(", sn=").append(sn);
        sb.append(", url=").append(url);
        sb.append(", perm=").append(perm);
        sb.append(", icon=").append(icon);
        sb.append(", state=").append(state);
        sb.append(", descriptiom=").append(descriptiom);
        sb.append(", ctime=").append(ctime);
        sb.append(", ltime=").append(ltime);
        sb.append(", isdel=").append(isdel);
        sb.append(", isstop=").append(isstop);
        sb.append(", opid=").append(opid);
        sb.append("]");
        return sb.toString();
    }
}